package com.jd.service.center;

import com.jd.pojo.Order;
import com.jd.utils.PagedGridResult;
import com.jd.vo.OrderStatusCountsVO;

public interface MyOrderService {


    /**
     * 查询我的订单列表
     * @param userId
     * @param orderStatus
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult queryMyOrders(String userId,
                                         Integer orderStatus,
                                         Integer page,
                                         Integer pageSize);


    /**
     * @Description: 订单状态 --> 商家发货
     */
    void updateDeliverOrderStatus(String orderId);


    /**
     * 查询用户未删除的订单
     * @param userId
     * @param orderId
     * @return
     */
    public Order queryMyOrder(String userId, String orderId);


    /**
     * 订单状态-->确认收货
     * @param orderId
     * @return
     */
    public boolean updateReceiveOrderStatus(String orderId);


    /**
     * 删除用户订单
     * @param userId
     * @param orderId
     * @return
     */
    boolean deleteOrder(String userId, String orderId);

    public OrderStatusCountsVO getOrderStatusCounts(String userId);

    public PagedGridResult getOrdersTrend(String userId, Integer page, Integer pageSize);
}
